home *** CD-ROM | disk | FTP | other *** search
Wrap
Text File | 1994-08-17 | 34.1 KB | 1,533 lines
; $VER: Install-MagicCX 1.0 (2.8.94) ; Install script for MagicCX (Workbench 2.1 or higher) ;======================================================== ; English strings (set default_lang 256) (set #bad-kick (cat "You must be using Kickstart 2.04 to use MagicCX. Aborting!" )) (set #copying-mcxserver "Copying MagicCX Server program...") (set #copying-mcxprefs "Copying MagicCX Preferences program...") (set #which-language-help (cat "\nThe Amiga can be operated in many different" " languages. If you want MagicCX windows to" " use the same language as the Amiga Workbench" " then a catalog file must be copied to your" " system disk for each language supported.\n\n" "To reduce the amount of space consumed by the" " language files, you can select to have only the" " files of specific languages copied.\n\n" "Simply check the boxes of the languages you wish" " to have available on your system.\n\n" @askoptions-help )) (set #install-msg (cat "\n\MagicCX installation script.\n" "This script installs MagicCX on your Amiga.\n\n" "Read the Documentation files for\n" "more information on the distribution.\n" "MagicCX © 1994 Kai Iske\n" "All rights reserved." )) (set #ask-remove "There is an old version of MagicCX installed\nDo you want to deinstall it\nor simply install the new version?") (set #remove-ok "Deinstall") (set #remove-no "Install") (set #exit-deinstall "MagicCX deinstalled\n\n Remember to remove the MagicCX: Assignment from\nyour User-StartUp file\n\nThere might be some ARexx Scripts left, too") (set #icon-types "Which type of icons would you like to install?") (set #icon-magicwb "MagicWB; 8 colors") (set #icon-normal "Normal; 4 colors") (set #magiccx-drawer "Please locate a directory create a directory called MagicCX in") (set #create-magiccx-dir "\n\nInstalling MagicCX to\n\n") (set #unpack-server "\n\nUnpacking Server to RAM:") (set #install-server "\n\nInstalling Server program") (set #install-wbstart "\n\nInstalling Server launcher icon") (set #install-atboot "Do you want to launch MagicCX at System Startup?") (set #install-wbstartboot "\n\nInstalling Server launcher icon to SYS:WBStartUp") (set #do-install-key "\n\nWelcome registered user!\n\nThanks for your support") (set #install-key "\n\nInstalling KeyFile") (set #unpack-prefs "\n\nUnpacking Preferences to RAM:") (set #install-prefs "\n\nInstalling Preferences program") (set #unpack-libraries "\n\nUnpacking libraries to RAM:") (set #install-lib "\n\nInstalling mcx.library") (set #install-guilib "\n\nInstalling mcxgui.library") (set #install-blanklib "\n\nInstalling mcxblanker.library") (set #old-asl "\n\nYou are using a version of asl.library\nolder than V38. For some purposes, MagicCX requires asl.library V38 or reqtool.library V38\nI will now try to install reqtool.library V38") (set #install-reqlib "\n\nInstalling reqtools.library") (set #unpack-register "\n\nUnpacking SASG Registration program to RAM:") (set #install-register "\n\nInstalling SASG Registration program") (set #do-install-manager (cat "\nYou are running OS 3.x or better.\n" " This enables you to use a Modules Manager for\n" " easier access to MagicCX`s modules/blankers.\n" " You can install/deinstall modules/blankers using\n" " this window driven Modules Manager.\n\n" " Would you like to install the Modules Manager?" )) (set #unpack-manager "\n\nUnpacking Modules Manager to RAM:") (set #install-manager "\n\nInstalling Modules Manager") (set #select-modules-1 "Please select which modules to install") (set #create-modules-dir "Creating Modules directory") (set #create-modules-dir2 "Creating Modules storage directory") (set #unpack-modules "Unpacking Modules to RAM:") (set #install-alarm "Installing Alarm module") (set #install-analog "Installing AnalogClock module") (set #install-arexx "Installing ARexx module") (set #install-awedge "Installing AssignWedge module") (set #install-calendar "Installing Calendar module") (set #install-cycle "Installing Cycle2Menu module") (set #install-expwin "Installing ExplodingWindows module") (set #install-fkeys "Installing FKeys module") (set #install-format "Installing Formatter module") (set #install-grabber "Installing Grabber module") (set #install-lock "Installing LockWindows module") (set #install-movesize "Installing MoveSizer module") (set #install-phone "Installing PhoneBill module") (set #install-rcs "Installing RCS module") (set #install-screen "Installing ScreenSelect module") (set #install-tag "Installing TagScreens module") (set #install-tool "Installing ToolAlias module") (set #install-unix "Installing UnixDirs module") (set #install-scripts "Would you like to install some example\nScripts for the RCS Module?") (set #select-scripts "Please select scripts you want\nto install for the following environments") (set #select-scriptdir "Please select a directory for the scripts") (set #unpack-scripts "Unpacking scripts to RAM:") (set #install-ced "Installing scripts for CygnusED") (set #install-ttx "Installing scripts for TurboText") (set #install-ged "Installing scripts for GoldED") (set #install-rexx "Installing scripts for Shell") (set #do-install-rcs2hst "Would you like to install the RCS2HST utility for use with RCS?") (set #unpack-rcs2hst "Unpacking RCS2HST to RAM:") (set #install-rcs2hst "Installing RCS2HST"); (set #select-blankers-1 "Please select which blankers to install") (set #create-blankers-dir "Creating Blankers directory") (set #create-blankers-dir2 "Creating Blankers storage directory") (set #unpack-blankers "Unpacking Blankers to RAM:") (set #install-frac "Installing Fractals blanker") (set #install-inter "Installing Interference blanker") (set #install-life "Installing Life blanker") (set #install-line "Installing LineDawn blanker") (set #install-plasma "Installing Plasma blanker") (set #install-puzzle "Installing Puzzle blanker") (set #install-stars "Installing Stars blanker") (set #install-worms "Installing Worms blanker") (set #install-lang "Which languages should be installed?") (set #unpack-german "Unpacking German locale") (set #own-lang (cat "\n\nIf you want to create own versions of\n" "the catalogs pleaser have a look at the\n" "distributions Locale directory. You will\n" "find the .ct and .cd files there. If you\n" "have created you own translations, please\n" "don`t keep it a secret" )) (set #do-install-doc "Would you like to install MagicCX`s documentation?") (set #create-docs-dir "Creating documentation directory") (set #doc-type "Which documentation formats would you like to install?") (set #doc-lang "Which language do you prefer for the documentation?") (set #unpack-amigaguide "Unpacking AmigaGuide documentation to RAM:") (set #unpack-dvi "Unpacking TeX DVI documentation to RAM:") (set #install-gerguide "Installing German AmigaGuide documentation") (set #install-gerdvi "Installing German TeX DVI documentation") (set #install-engguide "Installing English AmigaGuide documentation") (set #install-engdvi "Installing English TeX DVI documentation") (set #add-assign "Adding Assign MagicCX: to your User-StartUp file\nCreating the Assign MagicCX: now!") (set #adding-assign "Now adding Assign to your User-StartUp file") (set #adding-help "This Assign MUST exist for MagicCX to work") (set #exit-msg "Have Fun using MagicCX\n\nAnd don`t forget; It`s Shareware!") ;======================================================== ; German strings (if (= @language "deutsch") ( (set default_lang 1) (set #bad-kick (cat "Sie müssen Kickstart 2.04 benutzen, um MagicCX zu benutzen. Abbruch!" )) (set #copying-mcxserver "Kopiere MagicCX Server Programm...") (set #copying-mcxprefs "Kopiere MagicCX Preferences Programm...") (set #which-language-help (cat "\nDer Amiga kann in vielen verschiedenen Sprachen betrieben werden. " "Wenn Sie wollen, daß die MagicCX Fenster die gleiche Sprache " "wie die Amiga-Workbench benutzen, müssen für jede zu installierende Sprache " "zwei Dateien auf Ihre Festplatte kopiert werden.\n\n" "Um den Platz in Grenzen zu halten, den die Sprachentreiberdateien " "einnehmen, können Sie wählen, nur die Treiber für bestimmte " "Sprachen zu installieren.\n\n" "Klicken Sie einfach die Felder derjenigen Sprachen an, die Sie in " "Ihrem System verfügbar haben wollen, so daß diese Sprachen mit " "einem Häkchen markiert sind.\n\n" @askoptions-help )) (set #install-msg (cat "\n\nMagicCX Installationsskript.\n" "Diese Befehlsdatei installiert MagicCX auf Ihrem Amiga.\n\n" "Lesen Sie die Dokumentationen für\n" "weitere Informationen über die Weitergeabe.\n" "MagicCX © 1994 Kai Iske\n" "All rights reserved." )) (set #ask-remove "Es wurde eine alte Version von MagicCX gefunden\nMöchten Sie diese Version deinstallieren\noder einfach die neue Version installieren?") (set #remove-ok "Deinstallieren") (set #remove-no "Installieren") (set #exit-deinstall "MagicCX deinstalliert\n\nBedenken Sie das MagicCX: Assign aus\nIhrer User-StartUp Datei zu entfernen\n\nEs könnten auch noch ARexx Skript vorhanden sein") (set #icon-types "Welche Typen der Icons möchten Sie installieren?") (set #icon-magicwb "MagicWB; 8 Farben") (set #icon-normal "Normal; 4 Farben") (set #magiccx-drawer "Bitte wählen Sie ein Verzeichnis, in dem das Verzeichnis MagicCX erzeugt werden soll") (set #create-magiccx-dir "\n\nInstalliere MagicCX nach\n\n") (set #unpack-server "\n\nEntpacke Server nach RAM:") (set #install-server "\n\nInstalliere Server Programm") (set #install-wbstart "\n\nInstalliere Server Starter Icon") (set #install-atboot "Möchten Sie MagicCX beim Hochfahren des System starten?") (set #install-wbstartboot "\n\nInstalliere Server Starter Icon nach SYS:WBStartUp") (set #do-install-key "\n\nWillkommen registrierter User!\n\nVielen Dank für die Unterstützung") (set #install-key "\n\nInstalliere KeyFile") (set #unpack-prefs "\n\nEntpacke Preferences nach RAM:") (set #install-prefs "\n\nInstalliere Preferences Programm") (set #unpack-libraries "\n\nEntpacke libraries nach RAM:") (set #install-lib "\n\nInstalliere mcx.library") (set #install-guilib "\n\nInstalliere mcxgui.library") (set #install-blanklib "\n\nInstalliere mcxblanker.library") (set #old-asl "\n\nSie benutzen eine ältere\nVersion der asl.library als V38\nFür einige Zwecke benötigt MagicCX asl.library V38 oder reqtool.library V38\nIch werde nun versuchen reqtool.library V38 zu installieren") (set #install-reqlib "\n\nInstalliere reqtools.library") (set #unpack-register "\n\nEntpacke SASG Registrations Programm nach RAM:") (set #install-register "\n\nInstalliere SASG Registrations Programm") (set #do-install-manager (cat "\nSie benutzen OS 3.x oder besser.\n" " Dies ermöglicht den Modul Manager zu nutzen\n" " für einfacheren Zugriff auf die Module/Blanker.\n" " Sie können mit diesem fenstergesteuerten Modul\n" " Manager Module/Blanker leicht de-/installieren.\n\n" " Möchten Sie den Modul Manager installieren?" )) (set #unpack-manager "\n\nEntpacke Modules Manager nach RAM:") (set #install-manager "\n\nInstalliere Modules Manager") (set #select-modules-1 "Bitte wählen Sie die zu installierenden Module") (set #create-modules-dir "Erzeuge Modul Verzeichnis") (set #create-modules-dir2 "Erzeuge Modul Lagerverzeichnis") (set #unpack-modules "Entpacke Module nach RAM:") (set #install-alarm "Installiere Alarm Modul") (set #install-analog "Installiere AnalogClock Modul") (set #install-arexx "Installiere ARexx Modul") (set #install-awedge "Installiere AssignWedge Modul") (set #install-calendar "Installiere Calendar Modul") (set #install-cycle "Installiere Cycle2Menu Modul") (set #install-expwin "Installiere ExplodingWindows Modul") (set #install-fkeys "Installiere FKeys Modul") (set #install-format "Installiere Formatter Modul") (set #install-grabber "Installiere Grabber Modul") (set #install-lock "Installiere LockWindows Modul") (set #install-movesize "Installiere MoveSizer Modul") (set #install-phone "Installiere PhoneBill Modul") (set #install-rcs "Installiere RCS Modul") (set #install-screen "Installiere ScreenSelect Modul") (set #install-tag "Installiere TagScreens Modul") (set #install-tool "Installiere ToolAlias Modul") (set #install-unix "Installiere UnixDirs Modul") (set #install-scripts "Möchten Sie einige Beispielskripte\nfür das RCS Modul installieren?") (set #select-scripts "Bitte wählen Sie, welche Skripte\nSie für welche Umgeben installieren möchen") (set #select-scriptdir "Bitte wählen Sie ein Verzeichnis für die Skripte") (set #unpack-scripts "Entpacke Skripte nach RAM:") (set #install-ced "Installiere Skripte für CygnusED") (set #install-ttx "Installiere Skripte für TurboText") (set #install-ged "Installiere Skripte für GoldED") (set #install-rexx "Installiere Skripte für Shell") (set #do-install-rcs2hst "Möchten Sie das RCS2HST Hilfsprogramm installieren?") (set #unpack-rcs2hst "Entpacke RCS2HST nach RAM:") (set #install-rcs2hst "Installiere RCS2HST"); (set #select-blankers-1 "Bitte wählen Sie, welche Blanker installiert werden sollen") (set #create-blankers-dir "Ergzeuge Blanker Verzeichnis") (set #create-blankers-dir2 "Erzeuge Blankers Lagerverzeichnis") (set #unpack-blankers "Entpacke Blanker nach RAM:") (set #install-frac "Installiere Fractals Blanker") (set #install-inter "Installiere Interference Blanker") (set #install-life "Installiere Life Blanker") (set #install-line "Installiere LineDawn Blanker") (set #install-plasma "Installiere Plasma Blanker") (set #install-puzzle "Installiere Puzzle Blanker") (set #install-stars "Installiere Stars Blanker") (set #install-worms "Installiere Worms Blanker") (set #install-lang "Welche Sprachen sollen installiert werden?") (set #unpack-german "Entpacke Deutsche locale") (set #own-lang (cat "\n\nWenn Sie eigene Versionen der Kataloge\n" "erstellen wollen, werfen Sie bitte einen\n" "Blick in das Locale Verzeichnis der Distribution\n" "Dort finden Sie die .ct und .cd Dateien. Wenn Sie\n" "eigene Übersetzungen erzeugt haben, bitte,\n" "machen Sie kein Geheimnis daraus" )) (set #do-install-doc "Möchten Sie die Dokumentation zu MagicCX installieren?") (set #create-docs-dir "Erzeuge Verzeichnis für Dokumentationen") (set #doc-type "Welche Dokementenformate möchten Sie installieren?") (set #doc-lang "Welche Sprache bevorzugen Sie für die Anleitung?") (set #unpack-amigaguide "Entpacke AmigaGuide Dokumentation nach RAM:") (set #unpack-dvi "Entpacke TeX DVI Dokumentation nach RAM:") (set #install-gerguide "Installiere Deutsche AmigaGuide Dokumentation") (set #install-gerdvi "Installiere Deutsche TeX DVI Dokumentation") (set #install-engguide "Installiere Englische AmigaGuide Dokumentation") (set #install-engdvi "Installiere Englische TeX DVI Dokumentation") (set #add-assign "Füge MagicCX: Assign Ihrer User-StartUp Datei zu\nErzeuge das MagicCX: Assign jetzt!") (set #adding-assign "Nun wird das Assign Ihrere User-StartUp Datei zugefügt.") (set #adding-help "Dieses Assign MUß existieren!") (set #exit-msg "Haben Sie Spaß mit MagicCX\n\nUnd nicht vergessen; Es ist Shareware!") )) ;======================================================== ; Check system we`re running on (if (< (/ (getversion) 65536) 37) ( (abort #bad-kick) )) ;======================================================== ; Initial message (message #install-msg) ;======================================================== ; Deinstall? (if (NOT (= (getassign "MagicCX") "")) ( (if (askbool (prompt #ask-remove) (help @askbool-help) (choices #remove-ok #remove-no ) ) ( ; Get full name of directory (set MCXDir (getassign "MagicCX")) (set MCXDirInfo ("\"%s.info\"" (getassign "MagicCX"))) ; ; Start deinstallation ; (run "Assign MagicCX: REMOVE") ; Delete directories (run "Delete " ("\"%s/%s\"" MCXDir "Modules") " ALL") (run "Delete " ("\"%s/%s\"" MCXDir "ModuleStorage") " ALL") (run "Delete " ("\"%s/%s\"" MCXDir "Prefs") " ALL") (run "Delete " ("\"%s/%s\"" MCXDir "Server") " ALL") (run "Delete " ("\"%s/%s\"" MCXDir "WBStartUp") " ALL") (run "Delete " ("\"%s/%s\"" MCXDir "Docs") " ALL") (run "Delete " ("\"%s/%s\"" MCXDir "Tools") " ALL") (run "Delete " ("\"%s/%s\"" MCXDir "libs") " ALL") ; Delete infos (run "Delete " ("\"%s/%s\"" MCXDir "#?.info")) ; Try to delete base directory (run "Delete " ("\"%s\"" MCXDir)) (run "Delete " MCXDirInfo) (run "Delete LOCALE:Catalogs/deutsch/MagicCX ALL") (run "Delete SYS:WBStartUp/MCX") (run "Delete SYS:WBStartUp/MCX.info") (run "Delete ENVARC:MagicCX ALL") (run "Delete ENV:MagicCX ALL") (exit #exit-deinstall) )) )) ;======================================================== ; Get IconTypes (set IconType (askchoice (prompt #icon-types) (help @askchoice-help) (choices #icon-magicwb #icon-normal ) (default 0) ) ) ;======================================================== ; Get directory where to install MagicCX to (set MCXBase (askdir (prompt #magiccx-drawer) (default "Work:") (help #askdir-help) ) ) (set MCXDir (tackon MCXBase "MagicCX")) (complete 6) ;======================================================== ; Create Directory (makedir MCXDir (prompt #create-magiccx-dir) (help @makedir-help) ) (if (= IconType 0) ( (run IconFile ("RAM:LhX x /Icons/Icons8.lha MagicCX.info \"%s//\"" MCXDir)) )) (if (= IconType 1) ( (run IconFile ("RAM:LhX x /Icons/Icons4.lha MagicCX.info \"%s//\"" MCXDir)) )) ;======================================================== ; Set IconFile (if (= IconType 0) ( (set IconFile "RAM:LhX x /Icons/Icons8.lha %s \"%s/\"") )) (if (= IconType 1) ( (set IconFile "RAM:LhX x /Icons/Icons4.lha %s \"%s/\"") )) ;======================================================== ; Copy Server program (working #unpack-server) (run "RAM:LhX x /Server/Server.lha RAM:") (makedir (tackon MCXDir "Server")) (run (IconFile "Server.info" MCXDir)) (copylib (prompt #install-server) (help @copylib-help) (source "RAM:MCX") (dest (tackon MCXDir "Server")) ) (run (IconFile "Server/MCX.info" MCXDir)) (run "Delete RAM:MCX") (complete 12) ; ; Install KeyFile ; (if (exists "/Server/MCX.key") ( (message #do-install-key) (copyfiles (prompt #install-key) (help @copyfiles-help) (source "/Server/MCX.key") (dest "S:") ) )) ; ; Copy WBStartUp icon ; (makedir (tackon MCXDir "WBStartUp")) (run (IconFile "WBStartUp.info" MCXDir)) (run (IconFile "WBStartUp/MCX.info" MCXDir)) (complete 18) ; ; Launch server at startup? ; (if (askbool (prompt #install-atboot) (help @askbool-help) ) ( (copyfiles (prompt #install-wbstartboot) (help @copyfiles-help) (source ("%s/WBStartUp/MCX.info" MCXDir)) (dest "SYS:WBStartUp") ) )) (complete 24) ;======================================================== ; Install Preferences program (working #unpack-prefs) (run "RAM:LhX x /Prefs/Prefs.lha RAM:") (makedir (tackon MCXDir "Prefs")) (run (IconFile "Prefs.info" MCXDir)) (copylib (prompt #install-prefs) (help @copylib-help) (source "RAM:MCX") (dest (tackon MCXDir "Prefs")) ) (run (IconFile "Prefs/MCX.info" MCXDir)) (run "Delete RAM:MCX") (complete 30) ;======================================================== ; Install libraries (working #unpack-libraries) (run "RAM:LhX x /libs/libs.lha RAM:") (makedir (tackon MCXDir "libs")) (copylib (prompt #install-lib) (help @copylib-help) (source "RAM:mcx.library") (dest (tackon MCXDir "libs")) ) (copylib (prompt #install-guilib) (help @copylib-help) (source "RAM:mcxgui.library") (dest (tackon MCXDir "libs")) ) (copylib (prompt #install-blanklib) (help @copylib-help) (source "RAM:mcxblanker.library") (dest (tackon MCXDir "libs")) ) (complete 36) ; ; Older Version than V38 of asl.library? ; (if (< (/ (getversion "asl.library" (resident)) 65536) 38) ( (message #old-asl) (copylib (prompt #install-reqlib) (help @copylib-help) (source "RAM:reqtools.library") (dest (tackon MCXDir "libs")) ) )) (complete 42) (run "Delete RAM:mcx.library") (run "Delete RAM:mcxgui.library") (run "Delete RAM:mcxblanker.library") (run "Delete RAM:reqtools.library") ;======================================================== ; Install Registration Program (working #unpack-register) (run "RAM:LhX x /Tools/Register.lha RAM:") (makedir (tackon MCXDir "Tools")) (run (IconFile "Tools.info" MCXDir)) (copylib (prompt #install-register) (help @copylib-help) (source "RAM:Register") (dest (tackon MCXDir "Tools")) ) (run (IconFile "Tools/Register.info" MCXDir)) (run "Delete RAM:Register") (complete 48) ;======================================================== ; Install Modules Manager (if (> (/ (getversion) 65536) 38) ( (if (askbool (prompt #do-install-manager) (help @askbool-help) ) ( (working #unpack-manager) (run "RAM:LhX x /Tools/ModulesManager.lha RAM:") (copylib (prompt #install-manager) (help @copylib-help) (source "RAM:ModulesManager") (dest (tackon MCXDir "Tools")) ) (run (IconFile "Tools/ModulesManager.info" MCXDir)) (run "Delete RAM:ModulesManager") )) )) (complete 54) ;======================================================== ; Create Modules directories (makedir (tackon MCXDir "Modules") (prompt #create-modules-dir) (help @makedir-help) ) (makedir (tackon MCXDir "Modules/Blankers") (prompt #create-blankers-dir) (help @makedir-help) ) (makedir (tackon MCXDir "ModuleStorage") (prompt #create-modules-dir2) (help @makedir-help) ) (makedir (tackon MCXDir "ModuleStorage/Blankers") (prompt #create-blankers-dir2) (help @makedir-help) ) (run (IconFile "Modules.info" MCXDir)) (run (IconFile "Modules/Blankers.info" MCXDir)) (run (IconFile "ModuleStorage.info" MCXDir)) (run (IconFile "ModuleStorage/Blankers.info" MCXDir)) (complete 60) ;======================================================== ; Which modules to install? (set Modules (askoptions (prompt #select-modules-1) (help @askoptions-help) (choices "Alarm" "Analog Clock" "ARexx" "AssignWedge" "Calendar" "Cycle2Menu" "ExplodingWindows" "FKeys" "Formatter" "Grabber" "LockWindows" "MoveSizer" "PhoneBill" "RCS" "ScreenSelect" "TagScreens" "ToolAlias" "UnixDirs" ) (default -1) ) ) ;======================================================== ; Install modules? (if (> Modules 0) ( (working #unpack-modules) (run "RAM:LhX x /Modules/Modules.lha RAM:") ; ALARM Module (if (IN Modules 0) ( (copylib (prompt #install-alarm) (help @copylib-help) (source "RAM:Alarm.mcxmod") (dest (tackon MCXDir "Modules")) ) (run (IconFile "Modules/Alarm.mcxmod.info" MCXDir)) )) ; Analog Clock module (if (IN Modules 1) ( (copylib (prompt #install-analog) (help @copylib-help) (source "RAM:AnalogClock.mcxmod") (dest (tackon MCXDir "Modules")) ) (run (IconFile "Modules/AnalogClock.mcxmod.info" MCXDir)) )) ; AREXX Module (if (IN Modules 2) ( (copylib (prompt #install-arexx) (help @copylib-help) (source "RAM:ARexx.mcxmod") (dest (tackon MCXDir "Modules")) ) (run (IconFile "Modules/ARexx.mcxmod.info" MCXDir)) )) ; AssignWedge Module (if (IN Modules 3) ( (copylib (prompt #install-awedge) (help @copylib-help) (source "RAM:AssignWedge.mcxmod") (dest (tackon MCXDir "Modules")) ) (run (IconFile "Modules/AssignWedge.mcxmod.info" MCXDir)) )) ; CALENDAR Module (if (IN Modules 4) ( (copylib (prompt #install-calendar) (help @copylib-help) (source "RAM:Calendar.mcxmod") (dest (tackon MCXDir "Modules")) ) (run (IconFile "Modules/Calendar.mcxmod.info" MCXDir)) )) ; CYCLE2MENU Module (if (IN Modules 5) ( (copylib (prompt #install-cycle) (help @copylib-help) (source "RAM:Cycle2Menu.mcxmod") (dest (tackon MCXDir "Modules")) ) (run (IconFile "Modules/Cycle2Menu.mcxmod.info" MCXDir)) )) ; EXPWINDOWS Module (if (IN Modules 6) ( (copylib (prompt #install-expwin) (help @copylib-help) (source "RAM:ExplodingWindows.mcxmod") (dest (tackon MCXDir "Modules")) ) (run (IconFile "Modules/ExplodingWindows.mcxmod.info" MCXDir)) )) ; FKEYS Module (if (IN Modules 7) ( (copylib (prompt #install-fkeys) (help @copylib-help) (source "RAM:FKeys.mcxmod") (dest (tackon MCXDir "Modules")) ) (run (IconFile "Modules/FKeys.mcxmod.info" MCXDir)) )) ; FORMATTER Module (if (IN Modules 8) ( (copylib (prompt #install-format) (help @copylib-help) (source "RAM:Formatter.mcxmod") (dest (tackon MCXDir "Modules")) ) (run (IconFile "Modules/Formatter.mcxmod.info" MCXDir)) )) ; GRABBER Module (if (IN Modules 9) ( (copylib (prompt #install-grabber) (help @copylib-help) (source "RAM:Grabber.mcxmod") (dest (tackon MCXDir "Modules")) ) (run (IconFile "Modules/Grabber.mcxmod.info" MCXDir)) )) ; LOCKWINDOWS Module (if (IN Modules 10) ( (copylib (prompt #install-lock) (help @copylib-help) (source "RAM:LockWindows.mcxmod") (dest (tackon MCXDir "Modules")) ) (run (IconFile "Modules/LockWindows.mcxmod.info" MCXDir)) )) ; MOVESIZER Module (if (IN Modules 11) ( (copylib (prompt #install-movesize) (help @copylib-help) (source "RAM:MoveSizer.mcxmod") (dest (tackon MCXDir "Modules")) ) (run (IconFile "Modules/MoveSizer.mcxmod.info" MCXDir)) )) ; PHONEBILL Module (if (IN Modules 12) ( (copylib (prompt #install-phone) (help @copylib-help) (source "RAM:PhoneBill.mcxmod") (dest (tackon MCXDir "Modules")) ) (run (IconFile "Modules/PhoneBill.mcxmod.info" MCXDir)) )) ; RCS Module (if (IN Modules 13) ( (copylib (prompt #install-rcs) (help @copylib-help) (source "RAM:RCS.mcxrxmod") (dest (tackon MCXDir "Modules")) ) (run (IconFile "Modules/RCS.mcxrxmod.info" MCXDir)) )) ; SCREENSELECT Module (if (IN Modules 14) ( (copylib (prompt #install-screen) (help @copylib-help) (source "RAM:ScreenSelect.mcxmod") (dest (tackon MCXDir "Modules")) ) (run (IconFile "Modules/ScreenSelect.mcxmod.info" MCXDir)) )) ; TAGSCREENS Module (if (IN Modules 15) ( (copylib (prompt #install-tag) (help @copylib-help) (source "RAM:TagScreens.mcxmod") (dest (tackon MCXDir "Modules")) ) (run (IconFile "Modules/TagScreens.mcxmod.info" MCXDir)) )) ; TOOLALIAS Module (if (IN Modules 16) ( (copylib (prompt #install-tool) (help @copylib-help) (source "RAM:ToolAlias.mcxmod") (dest (tackon MCXDir "Modules")) ) (run (IconFile "Modules/ToolAlias.mcxmod.info" MCXDir)) )) ; UNIXDIRS Module (if (IN Modules 17) ( (copylib (prompt #install-unix) (help @copylib-help) (source "RAM:UnixDirs.mcxmod") (dest (tackon MCXDir "Modules")) ) (run (IconFile "Modules/UnixDirs.mcxmod.info" MCXDir)) )) (run "Delete RAM:#?.mcx#?") ; ; User installed RCS, check for scripts ; (if (IN Modules 13) ( (if (askbool (prompt #install-scripts) (help @askbool-help) ) ( (set Scripts (askoptions (prompt #select-scripts) (help @askoptions-help) (choices "CygnusEd" "TurboText" "GoldED" "Shell" ) (default -1) ) ) (set ScriptDir (askdir (prompt #select-scriptdir) (help @askdir-help) (default "REXX:") ) ) (working #unpack-scripts) (run "RAM:LhX x /Rexx/Scripts.lha RAM:") ; ; Install CED ; (if (IN Scripts 0) ( (copyfiles (prompt #install-ced) (help @copyfiles-help) (source "RAM:") (pattern "#?.ced") (dest ScriptDir) ) )) ; ; Install TurboText ; (if (IN Scripts 1) ( (copyfiles (prompt #install-ttx) (help @copyfiles-help) (source "RAM:") (pattern "#?.ttx") (dest ScriptDir) ) )) ; ; Install GoldED ; (if (IN Scripts 2) ( (copyfiles (prompt #install-ged) (help @copyfiles-help) (source "RAM:") (pattern "#?.ged") (dest ScriptDir) ) )) ; ; Install Plain ; (if (IN Scripts 3) ( (copyfiles (prompt #install-rexx) (help @copyfiles-help) (source "RAM:") (pattern "#?.rexx") (dest ScriptDir) ) )) (run "Delete RAM:#?.ced") (run "Delete RAM:#?.ged") (run "Delete RAM:#?.ttx") (run "Delete RAM:#?.rexx") )) ; ; Install RCS2HST? ; (if (askbool (prompt #do-install-rcs2hst) (help @askbool-help) ) ( (working #unpack-rcs2hst) (run "RAM:LhX x /Tools/RCS2HST RAM:") (copylib (prompt #install-rcs2hst) (help @copylib-help) (source "RAM:RCS2HST") (dest (tackon MCXDir "Tools")) ) (run (IconFile "Tools/RCS2HST.info" MCXDir)) (run "Delete RAM:RCS2HST#?") )) )) )) (complete 75) ;======================================================== ; Which blankers to install? (set Blankers (askoptions (prompt #select-blankers-1) (help @askoptions-help) (choices "Fractals" "Interference" "Life" "LineDawn" "Plasma" "Puzzle" "Stars" "Worms" ) (default -1) ) ) ;======================================================== ; Install Blankers? (if (> Blankers 0) ( (working #unpack-blankers) (run "RAM:LhX x /Modules/Blankers.lha RAM:") ; FRACTALS Module (if (IN Blankers 0) ( (copylib (prompt #install-frac) (help @copylib-help) (source "RAM:Fractals.mcxblk") (dest (tackon MCXDir "Modules/Blankers")) ) (run (IconFile "Modules/Blankers/Fractals.mcxblk.info" MCXDir)) )) ; INTERFERENCE Module (if (IN Blankers 1) ( (copylib (prompt #install-inter) (help @copylib-help) (source "RAM:Interference.mcxblk") (dest (tackon MCXDir "Modules/Blankers")) ) (run (IconFile "Modules/Blankers/Interference.mcxblk.info" MCXDir)) )) ; LIFE Module (if (IN Blankers 2) ( (copylib (prompt #install-life) (help @copylib-help) (source "RAM:Life.mcxblk") (dest (tackon MCXDir "Modules/Blankers")) ) (run (IconFile "Modules/Blankers/Life.mcxblk.info" MCXDir)) )) ; LINEDAWN Module (if (IN Blankers 3) ( (copylib (prompt #install-line) (help @copylib-help) (source "RAM:LineDawn.mcxblk") (dest (tackon MCXDir "Modules/Blankers")) ) (run (IconFile "Modules/Blankers/LineDawn.mcxblk.info" MCXDir)) )) ; PLASMA Module (if (IN Blankers 4) ( (copylib (prompt #install-plasma) (help @copylib-help) (source "RAM:Plasma.mcxblk") (dest (tackon MCXDir "Modules/Blankers")) ) (run (IconFile "Modules/Blankers/Plasma.mcxblk.info" MCXDir)) )) ; PUZZLE Module (if (IN Blankers 5) ( (copylib (prompt #install-puzzle) (help @copylib-help) (source "RAM:Puzzle.mcxblk") (dest (tackon MCXDir "Modules/Blankers")) ) (run (IconFile "Modules/Blankers/Puzzle.mcxblk.info" MCXDir)) )) ; STARS Module (if (IN Blankers 6) ( (copylib (prompt #install-stars) (help @copylib-help) (source "RAM:Stars.mcxblk") (dest (tackon MCXDir "Modules/Blankers")) ) (run (IconFile "Modules/Blankers/Stars.mcxblk.info" MCXDir)) )) ; WORMS Module (if (IN Blankers 7) ( (copylib (prompt #install-worms) (help @copylib-help) (source "RAM:Worms.mcxblk") (dest (tackon MCXDir "Modules/Blankers")) ) (run (IconFile "Modules/Blankers/Worms.mcxblk.info" MCXDir)) )) (run "Delete RAM:#?.mcx#?") )) (complete 90) ;======================================================== ; Install Locale (if (AND (NOT (= (getassign "Locale") "")) (exists "libs:locale.library")) ( ; ; Select language(s) ; (set Lang (askoptions (prompt #install-lang) (help #which-language-help) (choices "German" ) (default default_lang) ) ) (if (IN Lang 0) ( (working #unpack-german) (run "RAM:LhX x /locale/deutsch/Catalogs LOCALE:") )) (message #own-lang) )) (complete 93) ;======================================================== ; Install Documentaion (if (askbool (prompt #do-install-doc) (help @askbool-help) ) ( ; ; Create directory ; (makedir (tackon MCXDir "Docs") (prompt #create-docs-dir) ) (run (IconFile "Docs.info" MCXDir)) ; ; Ask types ; (if (exists "/Docs/DVI.lha") ( (set DocType (askoptions (prompt #doc-type) (help @askoptions-help) (choices "AmigaGuide ® V39" "TeX DVI file" ) (default 1) ) ) ) ( (set DocType (askoptions (prompt #doc-type) (help @askoptions-help) (choices "AmigaGuide ® V39" ) (default 1) ) ) )) ; ; Ask language ; (set DocLang (askchoice (prompt #doc-lang) (help @askchoice-help) (choices "German" "English" ) (if (= default_lang 256) ( (default 1) )( (default 0) )) ) ) ; ; Install GERMAN parts ; (if (= DocLang 0) ( (if (IN DocType 0) ( ; ; AmigaGuide ; (working #unpack-amigaguide) (run "RAM:LhX x /Docs/Guide.lha MCXGER.guide RAM:") (copyfiles (prompt #install-gerguide) (help @copyfile-help) (source "RAM:MCXGER.guide") (dest (tackon MCXDir "Docs") (newname "MagicCX.guide") )) (run (IconFile "Docs/MagicCX.guide.info" MCXDir)) (run "Delete RAM:MCX*.guide") )) (if (IN DocType 1) ( ; ; DVI ; (working #unpack-dvi) (run "RAM:LhX x /Docs/DVI.lha MCXGER.dvi RAM:") (copyfiles (prompt #install-gerdvi) (help @copyfile-help) (source "RAM:MCXGER.dvi") (dest (tackon MCXDir "Docs") (newname "MagicCX.dvi") )) (run (IconFile "Docs/MagicCX.dvi.info" MCXDir)) (run "Delete RAM:MCX*.dvi") )) )) ; ; Install ENGLISH parts ; (if (= DocLang 1) ( (if (IN DocType 0) ( ; ; AmigaGuide ; (working #unpack-amigaguide) (run "RAM:LhX x /Docs/Guide.lha MCXENG.guide RAM:") (copyfiles (prompt #install-engguide) (help @copyfile-help) (source "RAM:MCXENG.guide") (dest (tackon MCXDir "Docs") (newname "MagicCX.guide") )) (run (IconFile "Docs/MagicCX.guide.info" MCXDir)) (run "Delete RAM:MCX*.guide") )) (if (IN DocType 1) ( ; ; DVI ; (working #unpack-dvi) (run "RAM:LhX x /Docs/DVI.lha MCXENG.dvi RAM:") (copyfiles (prompt #install-engdvi) (help @copyfile-help) (source "RAM:MCXENG.dvi") (dest (tackon MCXDir "Docs") (newname "MagicCX.dvi") )) (run (IconFile "Docs/MagicCX.dvi.info" MCXDir)) (run "Delete RAM:MCX*.dvi") )) )) )) (complete 98) ;======================================================== ; Add Assign (message #add-assign) (makeassign "MagicCX" MCXDir) (startup "MagicCX" (command "Assign MagicCX: " MCXDir "\n") (prompt #adding-assign) (help @adding-help) ) (complete 100) (set @default-dest MCXDir) (exit #exit-msg)